﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Caching;
using System.Web;

namespace FAQFrameworks
{
    public class CacheManager
    {
        private Cache Cache
        {
            get
            {
                return HttpContext.Current.Cache;
            }
        }

        public void Remove(string key)
        {
            this.Cache.Remove(key);
        }

        public static CacheManager Init
        {
            get
            {
                return new CacheManager();
            }
        }

        public object this[string key]
        {
            get
            {
                return Cache[key];
            }
            set
            {
                Cache[key] = value;
            }
        }
    }
}
